package cn.xzq.crm.entity;

import java.util.List;

public class PageBean<T> {
	private Integer currentPage;//当前页
	private Integer totalCount;//总记录数
	private Integer totalPage;//总页数
	private Integer pageSize; //每页的总记录数
	private Integer begin; //开始位置
	private List<T> list;
	private String url; //当前的url
	
	
	public PageBean() {
		super();
	}

	public PageBean(Integer currentPage, Integer totalCount, Integer totalPage, Integer pageSize, Integer begin,
			List<T> list) {
		super();
		this.currentPage = currentPage;
		this.totalCount = totalCount;
		this.totalPage = totalPage;
		this.pageSize = pageSize;
		this.begin = begin;
		this.list = list;
	}


	public Integer getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getBegin() {
		return begin;
	}
	public void setBegin(Integer begin) {
		this.begin = begin;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "PageBean [currentPage=" + currentPage + ", totalCount=" + totalCount + ", totalPage=" + totalPage
				+ ", pageSize=" + pageSize + ", begin=" + begin + "]";
	}

	
}
